package com.sunshine.ssm.test.factoryMethod;

/**
 * @Description: 工厂模式（多个工厂模式）
 * @author: Hong.Wei
 * @Date: 2017/2/9 16:10
 */
public class SendFactory {

    public Sender produceMail() {
        return new MailSender();
    }
    /*静态工厂模式*/
   /*public static Sender produceMail(){
        return new MailSender();
    }*/

    public Sender produceMsm() {
        return new MsmSender();
    }
}
